As you can see, the respective versions contain a "mods" folder. Make it so that the content of these lands in your minecraft/mods/ folders.